package com.junqson.je.user.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Descriptions
 * @Company
 * @Author Junqson
 * @Date 2020/1/22 23:21
 * @Version 1.0
 */
@Component
public class ContextUtils {
    @Value("${spring.profiles.active}")
    public String mode;

    @Value("${testaccount.phone}")
    public String testPhone;

    @Value("${testaccount.code}")
    public String testCode;

    public boolean isDev() {
//        return "dev".equals(mode);
        return true;
    }
}